<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户提现</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/static/plupload/upfiless.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/Theme1/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"
          rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户提现 <a href="__APP__/User/bank_info" style="margin-left:15px; color:#06cbc4">编辑该收款信息</a>  <a href="__APP__/Tixian/tixian_list" style="margin-left:15px; color:#06cbc4">我的提现记录</a></h5>
                    <div class="ibox-tools"></div>
                </div>
                <div class="ibox-content">
                    <form method="post" action="__URL__/check_tixian" class="form-horizontal" id="form-admin-add"
                          enctype="multipart/form-data">
                        <div class="form-group">
                            <label class="col-sm-1 control-label">提现金额</label>
                            <div class="col-sm-3">
                                <input type="text" name="txtamount" id="txtamount" class="form-control" onBlur="ckbaodan(this.value)" placeholder="请输入100的整数提进行现,并且金额不得小于500"/> </span><span
                                    style="color:#F00" id="amount_notice">&nbsp;&nbsp;可提取金额为<{$int}></span>

                                <input type="hidden" name="user_amount_int" id="user_amount_int" class="form-control" value="<{$int}>"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">备注说明</label>
                            <div class="col-sm-3">
                                <input type="text" name="txtmemo" id="txtmemo" class="form-control" placeholder="可在此处填写您的提现备注"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">汇款银行</label>
                            <div class="col-sm-3">
                                <{$user_info.bank}>
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">银行帐号</label>
                            <div class="col-sm-3">
                                <{$user_info.bankno}>
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">开户姓名</label>
                            <div class="col-sm-3">
                                <{$user_info.truename}>
                            </div>

                        </div>
                        <div class="form-group">

                            <label class="col-sm-1 control-label">申请日期</label>
                            <div class="col-sm-3">
                                <{$time}>
                            </div>

                        </div>
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-1 control-label">兑换类型</label>-->
                            <!--<div class="col-sm-3">-->
                                <!--<select name="states" id="states">-->
                                    <!--<option value="0">直接兑换</option>-->
                                <!--</select>-->
                            <!--</div>-->

                        <!--</div>-->
                        <div class="form-group">
                            <label class="col-sm-1 control-label">注意事项</label>
                            <div class="col-sm-3">
                                <p>
                                    1.重复消费百分之二十。<br/>
                                    2.提现手续费百分之五。<br/>
                                    3.平台维护费百分之十。<br/>
                                    4.例: 提现100实际到账:100-((100*<{$cfxf_ratio}>)+(100*<{$tixian_ratio}>)+(100*<{$whf_ratio}>))。<br/>
                                </p>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <if condition="$flag eq 1">
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <input name="btnok" value="提 交" type="submit" class="buttom" class="btn btn-primary" id="btnsubmit"/>
                            </div>
                        </div>
                            <else />
                            <div class="col-sm-4 col-sm-offset-2">
                            <font color="red" style="font-size: 13px">下次提现时间:<{$ttime}></font>
                            </div>
                        </if>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/jquery.validate.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/messages_zh.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/validate-methods.js"></script>
<script type="text/javascript" src="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.min.js"></script>
<script>
    $(document).ready(function () {
//        $("#txtamount").focus();
        $("#btnsubmit").attr("disabled", "disabled");
    });
    function ckbaodan() {
        var inputCoin = $("#txtamount").val();
        var bdAmount = $("#user_amount_int").val();
        if(parseInt(bdAmount)==0){
            $("#amount_notice").html("&nbsp;&nbsp;转账奖金不足");
            $("#btnsubmit").attr("disabled", "disabled");
        }
        if(!(parseInt(inputCoin)%100==0))
        {
            $("#amount_notice").html("&nbsp;&nbsp;请输入100的整数");
            $("#txtamount").val("").focus();
            $("#btnsubmit").attr("disabled", "disabled");
        }else if(parseInt(inputCoin) > parseInt(bdAmount)){
            $("#amount_notice").html("&nbsp;&nbsp;最多可兑换"+bdAmount);
            $("#txtamount").val(bdAmount);
            $("#btnsubmit").removeAttr("disabled");
        }else{
            $("#amount_notice").html("");
            $("#btnsubmit").removeAttr("disabled");
        }
    }
</script>

</body>

</html>
